<?php 
session_start();include "conn.php";
?>
<?php  include("admin.php");?>


<?php
//文件名。。。
 $webname="product"; 
 $linkname="category"; 
 ?>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
$BigClassName=make_safe($_GET["BigClassName"]);


$action=make_safe($_GET["action"]);
$id=make_safe($_GET["id"]);
$nid=make_safe($_GET["nid"]);
$item =make_safe($_POST["items"]);
include("check.php");

if ($action=="del" and $id!="") {




	
	$sql="Delete from product_type_big  where id='$id' ";
			$result=mysql_query($sql);
	
	
		
			echo "<script> window.location.href='category.php?nid=$nid';</script>";

}


 if($item=="" && $id==""){ echo "<script>window.location.href='".$linkname.".php?nid=".$nid."&BigClassName=".urlencode($BigClassName)."&title=".urlencode($title)."&page=".$page."';</script>";}

if( $item<>""){
	
	
	
	//删除数据
		
			$sql="Delete from product_type_big  where id in (".$item.")";
			$result=mysql_query($sql);
			
			echo "<script>window.location.href='category.php?nid=".$nid."&page=".$page."';</script>";
		}
	





?>

